package mt.comm;

import mt.Order;

public class Message implements ClientSideMessage{

        private ClientSideMessage.Type type;
        private Order order;
        
        /**
         * Creates a new message
         * 
         * @param type Type of the message.
         * @param order Order of the message.
         * 
         */
        
        public Message(ClientSideMessage.Type type, Order order) {
                this.order = order;
                this.type = type;
        }

        @Override
        public Type getType() {
                return type;
        }

        @Override
        public Order getOrder() {
                return order;
        }

        @Override
        public String getError() {
                return "Error 404, order not found";
        }

        

        

}